/**
 * @fileoverview Data for the study.
 *
 * Each story object has the following fields:
 *
 * headline: One line text
 * teaserText: short paragraph to be shown in the front page
 * imageSrc: src of the image to be displayed in the front page
 * textTemplate: text with placeholders, modified for each conditions
 * conditions: an array with one item for each condition (See Conditions in
 *   storycreator.js), specifying what and which placeholders should be replaced
 *   to create the text specific for the condition.
 * question: study question
 * data: 2D array for the bar chart, assuming a single data series.
 */

var stories = [{
    headline: 'The European Government Debt',
    teaserText: 'Europe is in a financial crisis.  How does each country compare in terms of its debt as a factor of its economy?',
    imageSrc: 'images/euro.jpg',
    text: {
      context: 'Government debt is one of the indicators to compare the ' +
        'financial health of countries in the Eurozone. It is  ' +
        'meaningful to think about that debt as a proportion of the ' +
        'whole economy. On average, countries in Europe owed 82.5% of their GDP in the fourth quarter ' +
        'of 2011. But that averaged number hides a lot of variations between countries.',
      data: '{1}' +
         '{3s}Greece{3e} has the highest debt. Greece owes 165.3% of its GDP of €215 billion. That amounts to over €31,000 per capita. {3s}Italy{3e} ranks second in debt-to-GDP ratio at 120.1%. Italian GDP has been in decline since fall of 2011, in part due to reduced domestic demand caused by fiscal austerity and tight credit condition.  ' +
         'The {3s}United Kingdom{3e} is just above average at 85.7%, but it has sunk deeper into recession even though it is outside of the Euro zone and should benefit from being a safe haven for investors. {3s}Germany{3e} is doing comparatively well at 81.6%, but it is under pressure to finance a eurozone boost. The task is made more difficult with its decreasing GDP due to the decrease in purchasing power in Euorpe.'
    },
    question: 'Which country has the most debt as a percentage of its GDP?',
    data: [['countries','Gov debt, % of GDP, Q4 2011'],
      ['Austria', 72.2],
      ['Belgium', 98],
      ['Bulgaria', 16.3],
      ['Cyprus', 71.6],
      ['Czech Republic', 41.2],
      ['Denmark', 46.5],
      ['Estonia', 6],
      ['Finland', 48.6],
      ['France', 86],
      ['Germany', 81.2],
      ['Greece', 165.3],
      ['Hungary', 80.6],
      ['Ireland', 108.2],
      ['Italy', 120.1],
      ['Latvia', 42.6],
      ['Lithuania', 38.5],
      ['Luxembourg', 18.2],
      ['Malta',72],
      ['Netherlands', 65.2],
      ['Norway', 29],
      ['Poland', 56.4],
      ['Portugal',107.8],
      ['Romania', 33.3],
      ['Slovakia',43.3],
      ['Slovenia', 47.6],
      ['Spain', 68.5],
      ['Sweden', 38.4],
      ['United Kingdom', 85.7]],
    annotations: [
      {value: 'Greece', text: 'Greece has the highest debt. Greece owes 165.3% of its GDP of €215 billion. That amounts to over €31,000 per capita.'},
      {value: 'Italy', text: 'Italy ranks second in debt-to-GDP ratio at 120.1%. Italian GDP has been in decline since fall of 2011, in part due to reduced domestic demand caused by fiscal austerity and tight credit condition.'},
      {value: 'United Kingdom', text: 'The United Kingdom is just above average at 85.7%, but it has sunk deeper into recession even though it is outside of the Euro zone and should benefit from being a safe haven for investors.'},
      {value: 'Germany', text: 'Germany is doing comparatively well at 81.6%, but it is under pressure to finance a eurozone boost. The task is made more difficult with its decreasing GDP due to the decrease in purchasing power in Euorpe.'}]
  }, {
    headline: 'European Immigration',
    teaserText: 'Europe is an attractive destination for immigrants.  How do 27 EU countries compare in terms of how many immigrants they take on per year?',
    imageSrc: 'images/immigration.jpg',
    text: {
      context: 'European immigration in its current context is a recent phenomenon' +
         ' that has grown in size since World War II. The process of European integration has made Europe an attractive destination for immigrants.  During 2009, about 3.0 million people immigrated into one of the EU Member States (6.1%)',
      data: '{1}{3s}Luxembourg{3e} recorded the highest number of immigrants in 2009 (3.2%) relative to the size of the resident population, probably due to their <i>laissez faire</i> policies regarding immigration. Second is {3s}Malta{3e} at 1.7%. Malta is not only the smallest of the EU countries, it is also the most southern, lying south of both Tunis and Tangiers.  People from all over the East and the West Africa make their way first to Malta.  {3s}Slovenia{3e} had the third highest immigration in 2009 at 1.5%. Migration flows to Solvenia are still to a large extent connected with territory of former Yugoslavia. {3s}The United Kingdom{3e} has adopted a more relaxed immigration policy in recent years, due to the government\'s belief that Britain\'s economy would flourish with large-scale immgiration.'
    },
    question: 'Which country had the largest number of immigrants in 2009?',
    data: [['countries', 'Number of immigrants'],
      ['Austria', 0.877],
      ['Belgium', 1.21],
      ['Bulgaria', 0.016],
      ['Cyprus', 1.46],
      ['Czech Republic', 0.722],
      ['Denmark', 0.940],
      ['Estonia', 0.290],
      ['Finland', 0.501],
      ['France', 0.39],
      ['Germany', 0.422],
      ['Greece', 1.05],
      ['Hungary', 0.278],
      ['Ireland', 0.841],
      ['Italy', 0.738],
      ['Latvia', 0.119],
      ['Lithuania', 0.194],
      ['Luxembourg', 3.192],
      ['Malta', 1.748],
      ['Netherlands', 0.781],
      ['Poland', 0.046],
      ['Portugal', 0.304],
      ['Romania', 0.60],
      ['Slovakia', 0.289],
      ['Slovenia', 1.491],
      ['Spain', 1.089],
      ['Sweden', 1.105],
      ['United Kingdom', 0.920]],
    annotations: [
      {value: 'Luxembourg',
         text: 'Luxembourg recorded the highest number of immigrants in 2009 (3.2%), probably due to their <i>laissez faire</i> policies regarding immigration'},
      {value: 'Malta', text: 'Second is Malta at 1.7%.  Malta is not only the smallest of the EU countries, it is also the most southern, lying south of both Tunis and Tangiers.  People from all over the East and the West Africa make their way first to Malta.'},
      {value: 'Slovenia', text: 'Slovenia had the third highest immigration in 2009 at 1.5%. Migration flows to Solvenia are still to a large extent connected with territory of former Yugoslavia'},
      {value: 'United Kingdom', text: 'The United Kingdom has adopted a more relaxed immigration policy in recent years, due to the government\'s belief that Britain\'s economy would flourish with large-scale immgiration.'}]
  }, {
    headline: 'The 2012 Olympics',
    teaserText: 'Athletes from 205 countries will be participating in the 2012 Olympics. How diverse are individual sports in terms of the nationality of competing athletes?',
    imageSrc: 'images/olympicRings.png',
    text: {
      context: 'In 2012, there will be more than 10,000 athletes from 205 different countries taking part in the Olympic Games in London. The Olympic Games program consists of 26 sports which are comprised of several disciplines (e.g. different types of weights for Boxing). Not every country participates in every event.',
      data: '{1}{3s}Athletics{3e} is the sport with the most diverse set of countries participating - 92 countries in total. Athetlics has also been contested at every Summer Olympics since the birth of the modern Olympic movement at the 1896 Summer Olympics.  {3s}Boxing{3e} is the second most international with 76 countries. It has been contested at every Summer Olympics since its introduction in 1904, except in 1912 when Swedish law banned the sport at the time. {3s}Shooting{3e} ranks third with 63 countries. The shooting sports are cateogorized by the type of firearm or target used. {3s}Taekwondo{3e}, with 29 countries this year, started in 2004.  It was introduced as a demonstration sport at the 1998 Seoulgames with hundreds of adults and children performing moves in unison.'
    },
    question: 'Which sport has the most participating countries?',
    data: [['Sport', 'CNTD'],
      ['Archery', 21],
      ['Athletics', 92],
      ['Basketball', 20],
      ['Boxing', 76],
      ['Canoeing', 39],
      ['Cycling', 40],
      ['Diving', 20],
      ['Equestrian', 31],
      ['Fencing', 31],
      ['Football', 33],
      ['Gymnastics', 37],
      ['Handball', 23],
      ['Hockey', 20],
      ['Judo', 51],
      ['Pentathlon', 19],
      ['Rowing', 42],
      ['Sailing', 42],
      ['Shooting', 63],
      ['Swimming', 51],
      ['Table Tennis', 11],
      ['Taekwondo', 29],
      ['Tennis', 34],
      ['Triathlon', 9],
      ['Volleyball', 25],
      ['Water Polo', 20],
      ['Weightlifting', 58],
      ['Wrestling', 57]],
   annotations: [
    {value: 'Athletics', text: 'Atheletics is the sport with the most diverse set of countries participating - 92 countries in total. Athetlics has also been contested at every Summer Olympics since the birth of the modern Olympic movement at the 1896 Summer Olympics.'},
    {value: 'Boxing', text: 'Boxing is the second most international with 76 countries. It has been contested at every Summer Olympics since its introduction in 1904, except in 1912 when Swedish law banned the sport at the time.'},
    {value: 'Shooting', text: 'Shooting ranks third with 63 countries. The shooting sports are cateogorized by the type of firearm or target used.'},
    {value: 'Taekwondo', text: 'Taekwondo, with 29 countries this year, started in 2004.  It was introduced as a demonstration sport at the 1998 Seoulgames with hundreds of adults and children performing moves in unison.'}]
  }, {
    headline: 'Celebrity Earnings',
    teaserText: 'In 2012, as the world is in a financial crisis, celebrities still have very high earnings.  Who are the highest paid celebrities in the world?',
    imageSrc: 'images/celebrities.jpg',
    text: {
      context: 'Forbes Magazine releases an annual Forbes Celebrity 100 list of the highest paid celebrities in the world. The total earnings for all top celebrity 100 earners totaled $4.5 billion over the course of 2012 alone. The entertainment industry produces the top earners in the list.',
      data: '{1}{3s}Oprah Winfrey{3e} earns the most ($165 million) thanks to her entertainment empire of spin-off shows, her magazine, and her radio deal with Sirius XM. {3s}Michael Bay{3e}, the second on the list ($150 million), directed the recent Transformers movie and earns big on its profits.  Bay also earns big from Transformer toys and the Transformer ride at Universal Studios in Hollywood. Third is {3s}Steven Spielberg{3e} with $130 million. He directed several successful movies last year.  Spielberg\'s DreamWorks moved into television in a big way this year with four new shows including <i>Terra Nova</i> and <i>Smash</i>. {3s}Justin Bieber{3e} is making his second appearance on the list even though he is only 18.  The star earned $55 million in the past year thanks to touring and record sales.'
    },
    question: 'Which celebrity earned the most in 2012?',
    data: [['celebrity', 'earning'],
      ['Michael Bay', 150],
      ['Glenn Beck', 80],
      ['Justin Bieber', 55],
      ['Jerry Bruckheimer', 115],
      ['Simon Cowell', 90],
      ['Tom Cruise', 75],
      ['Ellen DeGeneres', 53],
      ['Dr. Dre', 110],
      ['Lady Gaga', 52],
      ['Jennifer Lopez', 52],
      ['LeBron James', 53],
      ['Elton John', 80],
      ['Bon Jovi', 60],
      ['Toby Keith', 55],
      ['Rush Limbaugh', 69],
      ['George Lucas', 90],
      ['Paul McCartney', 57],
      ['Manny Pacquiao', 67],
      ['James Patterson', 94],
      ['Tyler Perry', 105],
      ['Ryan Seacrest', 59],
      ['Steven Spielberg', 130],
      ['Britney Spears', 58],
      ['Howard Stern', 95],
      ['Tayler Swift', 57],
      ['Donald Trump', 63],
      ['Oprah Winfrey', 165]],
   annotations: [
     {value: 'Oprah Winfrey', text: 'Oprah Winfrey earns the most ($165 million) thanks to her entertainment empire of spin-off shows, her magazine, and her radio deal with Sirius XM.'},
     {value: 'Michael Bay', text: 'Michael Bay, the second on the list ($150 million), directed the recent Transformers movie and earns big on its profits.  Bay also earns big from Transformer toys and the Transformer ride at Universal Studios in Hollywood.'},
     {value: 'Steven Spielberg', text: 'Third is Steven Spielberg with $130 million. He directed several successful movies last year. Spielberg\'s DreamWorks moved into television in a big way this year with four new shows including <i>Terra Nova</i> and <i>Smash</i>'},
     {value: 'Justin Bieber', text: 'Justin Bieber is making his second appearance<br>on the list even though he is only 18.  The star earned $55 million in the past year thanks to touring and record sales.'}
  ]
}];
